System configuration System customization is performed thanks to the "system.se" file which must be in the sub-directory "sys" of the installation directory. When the system name is correctly set in the file "system.se", SmallEiffel performs some automatic customizations. For example, if the "system.se" file contains the string "DOS", SmallEiffel uses the suffix ".BAT" for script files and the suffix ".EXE" for executables files. The "sys" directory contains various files to customize SmallEiffel with the system, the C compiler and the linker used as well as the default loadpath used to look for Eiffel source code. The SmallEiffel environment variable Environment variable SmallEiffel must be set with the absolute path of the file "system.se" which is in the sub-directory "sys" of the installation directory. Under a UNIX-like system, the value of the SmallEiffel environment variable may be for example: /usr/lib/SmallEiffel/sys/system.se The contents of the file "system.se" indicate the [1]system you are running. File system.se The first word of file "system.se" is used by SmallEiffel to know which operating system is running. Currently supported values are: UNIX for all UNIX-like systems, GNU/Linux, HP-UX, Solaris, SunOS, Irix, XENIX, etc. Windows for Windows 95 and Windows NT systems (using long filenames). DOS for MS-DOS systems or Windows 3.x (using short filenames, with 8.3 scheme). Macintosh for Macintosh systems (68K and PPC) BeOS for the BeOS system Amiga for the Amiga system OS2 for IBM OS/2 systems VMS for the VMS systems You must choose the appropriate system name in the previous list and update file "system.se". To be sure that the previous list is up-to-date, just put a bad system name in the file "system.se" and then run for example command compile. The system name will then be used to access various files corresponding to the system you chose. For example, if you declared "Windows", only files with extension "Windows" will be considered (e.g. files like "loadpath.Windows", "compiler.Windows", "linker.Windows", etc...). File loadpath.system This file is used to set the default global load path for Eiffel source code. As seen previously, only file "loadpath.UNIX" is considered when content of file "system.se" is UNIX. All commands are using the same algorithm to search Eiffel source code (see [2]finder for more information). File compiler.system To set the default C compiler and its default options. Only the first line of this file is read. File linker.system To set the default linker and its default options. Only the first line of this file is read. File o_suffix.system The first word of this file indicates the suffix for object files. Usually ".o" under UNIX, ".OBJ" for VMS, may be ".o" or ".obj" for Windows, ... [Line] Copyright © Dominique COLNET and Suzanne COLLIN - [3] Last update: Sunday December 6th, 1998, by OZ. References 1. file://localhost/home/colnet/SmallEiffel/man/man/system.html 2. file://localhost/home/colnet/SmallEiffel/man/man/finder.html#algorithm 3. mailto:colnet@loria.fr